package com.yyoo.doc.mypdf.builder;

import com.lowagie.text.Element;
import com.lowagie.text.Phrase;

/**
 * 段落
 * @author zzy
 */
public class PdfPhraseBuilder extends PdfElementBuilder{
    @Override
    public Element build() {
        // 只获取标签本身的文本，子标签的文本不获取
        String text = this.getHtmlEl().getOwnTextString();

        return new Phrase(text, this.getFont());
    }
}
